-- holy_revive
-- created by panyl
-- 状态： 神圣重生

return {
    fetchProps = function(who, status, condition)
        local recover = tonumber(condition["recover"]);
        local endRound = condition["end_round"];
        local props = {};
        local propId = PropM.getPropId("revive");

        table.insert(props, { propId, 1, recover, endRound, });

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        -- 天赋额外效果
        local prop = PropM.combine(who, "magic_revive", 45);
        if prop[3] > 0 then
            desc = cfg.extra_desc;
        end

        -- 效果，百分比
        local value = condition["recover"];
        value = math.modf(value / 10);
        desc = string.gsub(desc, "{value}", value);

        return desc;
    end,
};
